home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 009 / masm4fix.arc / MASM4FIX.DOC
Encoding:
Text File  |  1986-11-20  |  3.8 KB  |  120 lines

  1.  
  2.  
  3. *************************************************************
  4.  
  5. The following is a patch from Microsoft to fix a problem with MASM 4.0
  6. using some "INCLUDE" files. I was given this patch from (and thanks to):
  7.     Richard L. Mueller, Ph.D.
  8.     11890 65th Ave., North
  9.     Maple Grove, MN 55369
  10. Doctor Mueller also makes mention of another unresolved problem with
  11. MASM 4.0 on page 7 of Sept.86 REMark, which has to do with the way a
  12.  -1 is handled in ver. 4.0 versus ver. 3.0. Microsoft acknowledged that
  13. it is a known problem, but has not yet sent a 'fix'.
  14.  
  15. INCLUDE Files:
  16.  
  17. Some text editors pad files to set block sizes. If you create INCLUDE
  18. files with one of these editors, you may receive the following error
  19. message from MASM:
  20.  
  21.     filename.ASM (#) : error1: Extra characters on line
  22.  
  23. While the object file is successfully completed, the listing file is
  24. truncated. This behavior differs from pre-4.0 MASM. The enclosed
  25. instructions will allow you to patch your copy of the Assembler, using
  26. SYMDEB, so that you can avoid the include file problem.
  27.  
  28. Please note the following:
  29.  
  30.    1. The enclosed patch should only be made to a COPY of MASM.EXE,
  31.       and NOT to the original file.
  32.  
  33.    2. The extension "FIX" is used so that changes can be written to
  34.       the file. Changes cannot be written if the file is loaded with
  35.       the "EXE" extension.
  36.  
  37.    3. User input is underlined. ( Note that this is not true for this )
  38.                      ( .DOC or .ARC file, so I assume you )
  39.                 ( know what to do and where. )
  40.  
  41. ------------ The Patch Process ----------
  42.  
  43. A: copy masm.exe masm.sav
  44.  
  45. A: ren masm.exe masm.fix
  46.  
  47. A: symdeb masm.fix
  48.  
  49. Microsoft (R) Symbolic Debug Utility Version 4.00
  50. Copyright (C) Microsoft Corp 1984, 1985. All rights reserved.
  51.  
  52. Processor is [8086]
  53. -A 72B8
  54. xxxx:72B8 MOV BX,[09D6]
  55.     :72BC MOV BYTE PTR [01C0], 00
  56.     :72C1 JMP 7539
  57.     :72C4 LES DX, [BX+06]
  58.     :72C7 INC BYTE PTR [01C0]
  59.     :72CB JMP 7542
  60.     :72CE CMP BYTE PTR [SI-01], 1A
  61.     :72D2 JZ 72D7
  62.     :72D4 JMP 7574
  63.     :72D7 DEC SI
  64.     :72D8 JMP 72CE
  65. xxxx:72DA            (Terminate Assembly)
  66. -A 7535
  67. xxxx:7535 JMP 72B8
  68. xxxx:7538
  69. -A 753F
  70. xxxx:753F JMP 72C4
  71. xxxx:7542
  72. -A 756D
  73. xxxx:756D JMP 72CE
  74. xxxx:7570
  75. -W
  76. Writing 14E3E bytes
  77. -Q
  78. A: ren masm.fix masm.exe
  79.  
  80. ************************* End of Official Microsoft Patch ******************
  81.  
  82. The following is a "homebrew" type of patch that I received from a friend:
  83.  
  84. -------- Use this one at your own risk --------
  85.  
  86. Errors that occur during the assembly process (using MASM 4.0) are only
  87. reported to the CRT, and cannot be "re-directed" to the PRN or a file.
  88. This patch allows redirection so that you can see the "error-free"
  89. assembly of your "First Draft" code.
  90.  
  91. ( DON'T EVER PATCH YOUR ORIGINAL COPY OF ANY FILE )
  92.  
  93. REN MASM.EXE MASM.ORG        ( I prefer to keep my ORiGinal file intact )
  94. COPY MASM.ORG MASM.TMP        ( then make a copy of it )
  95. SYMDEB MASM.TMP
  96. -E (CS+1000):4C11 1        ( Need the Space after the 'E' )
  97. -W
  98. -Q
  99. REN MASM.TMP MASM.EXE
  100.  
  101. ----- End of Patch -----
  102.  
  103. Now you can do:       MASM >ERRORS.TXT     (or, whatever)
  104.  
  105. and you'll have a new very small file on your disk if any errors occur
  106. during the assembly process (which we all know won't happen with our code).
  107.  
  108. Thanks to:  FandS Software for this one.
  109.  
  110. To test it out, take a short, good .ASM file and insert one instruction
  111. like:   ZZX  AX,BX     Then reassemble with redirection on the command line
  112. and see if you can TYPE or VFILER (thanks for this beauty) (V)iew the new
  113. file on the default disk (ERRORS.TXT in the example above).
  114.  
  115. Typing by Chuck Rogalo - I assume no responsibility for any of the above,
  116.              and you use it AT YOUR OWN RISK...
  117.  
  118. ----------- End of MASM 4.0 patches ----------
  119.  
  120.